// 导入axios实例
import httpRequest from '../utils/request'
// 定义接口的传参

export function getCameraList(params) {
    return httpRequest({
		url: '/deviceInfo/queryAllDevices',
		method: 'get',
		params
	})
}


export function pullStream(params) {
    return httpRequest({
		url: '/stream/pullStream',
		method: 'get',
		params
	})
}

export function getFilesByDates(params) {
    return httpRequest({
		url: '/stream/getFilesByDates',
		method: 'get',
		params
	})
}
export function updateDeviceInfo(data) {
	return httpRequest({
		url: '/deviceInfo/updateDeviceInfo',
		method: 'put',
		data
	})
}
export function downloadVideo(params) {
	return httpRequest({
		url: '/stream/downloadVideoFileByFileName',
		method: 'get',
		params
	})
}
